package com.whosly.fast.web.quickly.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "server")
@Setter
@Getter
@ToString
public class AppConfig implements INormalConfig {
    private String env;

    private Integer port;

    private Build build;

    @Setter
    @Getter
    @ToString
    public static class Build {
        private String version;
    }
}
